<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* D:\OpenServer\domains\Magazin\install-master/plugins/offline/sitesearch/components/searchinput/default.htm */
class __TwigTemplate_9fbbecaedebe4be2003605d2edd49a201dd56a551608d33102b074a015d603cb extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
        $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
        $this->checkSecurity();
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<form action=\"";
        echo $this->extensions['Cms\Twig\Extension']->pageFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["__SELF__"] ?? null), "searchPage", [], "any", false, false, true, 1), 1, $this->source));
        echo "?q=";
        echo twig_escape_filter($this->env, twig_urlencode_filter($this->sandbox->ensureToStringAllowed(($context["query"] ?? null), 1, $this->source), true), "html", null, true);
        echo "\" method=\"get\">
    <div class=\"ss-search-form\">
        <div class=\"ss-search-form__input\">
            <input name=\"q\" type=\"text\" placeholder=\"What are you looking for?\" 
                   value=\"";
        // line 5
        echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["__SELF__"] ?? null), "query", [], "any", false, false, true, 5), 5, $this->source), "html", null, true);
        echo "\"
                   autocomplete=\"off\"
                   autofocus
                    ";
        // line 8
        if (twig_get_attribute($this->env, $this->source, ($context["__SELF__"] ?? null), "useAutoComplete", [], "any", false, false, true, 8)) {
            // line 9
            echo "                        data-track-input
                        data-request=\"";
            // line 10
            echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(($context["__SELF__"] ?? null), 10, $this->source), "html", null, true);
            echo "::onType\"
                        data-request-before-update=\"document.getElementById('autocomplete-results').classList.add('ss-search-form__results--visible')\"
                        data-request-update=\"'";
            // line 12
            echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(($context["__SELF__"] ?? null), 12, $this->source), "html", null, true);
            echo "::autocomplete': '#autocomplete-results'\"
                    ";
        }
        // line 14
        echo "            >
            <button class=\"ss-search-form__submit\" type=\"submit\">Search</button>
        </div>
        <div class=\"ss-search-form__results\" id=\"autocomplete-results\"></div>
    </div>
</form>
";
    }

    public function getTemplateName()
    {
        return "D:\\OpenServer\\domains\\Magazin\\install-master/plugins/offline/sitesearch/components/searchinput/default.htm";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  70 => 14,  65 => 12,  60 => 10,  57 => 9,  55 => 8,  49 => 5,  39 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<form action=\"{{ __SELF__.searchPage | page }}?q={{ query | url_encode(true) }}\" method=\"get\">
    <div class=\"ss-search-form\">
        <div class=\"ss-search-form__input\">
            <input name=\"q\" type=\"text\" placeholder=\"What are you looking for?\" 
                   value=\"{{ __SELF__.query }}\"
                   autocomplete=\"off\"
                   autofocus
                    {% if __SELF__.useAutoComplete %}
                        data-track-input
                        data-request=\"{{ __SELF__ }}::onType\"
                        data-request-before-update=\"document.getElementById('autocomplete-results').classList.add('ss-search-form__results--visible')\"
                        data-request-update=\"'{{ __SELF__ }}::autocomplete': '#autocomplete-results'\"
                    {% endif %}
            >
            <button class=\"ss-search-form__submit\" type=\"submit\">Search</button>
        </div>
        <div class=\"ss-search-form__results\" id=\"autocomplete-results\"></div>
    </div>
</form>
", "D:\\OpenServer\\domains\\Magazin\\install-master/plugins/offline/sitesearch/components/searchinput/default.htm", "");
    }
    
    public function checkSecurity()
    {
        static $tags = array("if" => 8);
        static $filters = array("page" => 1, "escape" => 1, "url_encode" => 1);
        static $functions = array();

        try {
            $this->sandbox->checkSecurity(
                ['if'],
                ['page', 'escape', 'url_encode'],
                []
            );
        } catch (SecurityError $e) {
            $e->setSourceContext($this->source);

            if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
                $e->setTemplateLine($tags[$e->getTagName()]);
            } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
                $e->setTemplateLine($filters[$e->getFilterName()]);
            } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
                $e->setTemplateLine($functions[$e->getFunctionName()]);
            }

            throw $e;
        }

    }
}
